package io.kiki.sba.registry.common.model.slot;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Map;

@Setter
@Getter
public class SlotsStatusResponse implements Serializable {

    @Getter
    private final long slotsEpoch;

    private final boolean isSlotsLeaderBalanced;
    private final boolean isSlotsFollowerBalanced;

    private final boolean isSlotsStable;
    @Getter
    private final boolean protectionMode;

    @Getter
    private final Map<String, Integer> leaderCount;

    @Getter
    private final Map<String, Integer> followerCount;

    public SlotsStatusResponse(long slotsEpoch, boolean SlotsLeaderBalanced, boolean SlotsFollowerBalanced, boolean SlotsStable, boolean protectionMode, Map<String, Integer> leaderCount, Map<String, Integer> followerCount) {
        this.slotsEpoch = slotsEpoch;
        this.isSlotsLeaderBalanced = SlotsLeaderBalanced;
        this.isSlotsFollowerBalanced = SlotsFollowerBalanced;
        this.protectionMode = protectionMode;
        this.isSlotsStable = SlotsStable;
        this.leaderCount = leaderCount;
        this.followerCount = followerCount;
    }


}
